package com.example.tutorialwebsocket.controller;

import com.example.tutorialwebsocket.service.WebSocketNotifyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: cph
 * @date: 2023/10/20 18:00
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping
    public boolean test() {
        WebSocketNotifyService.sendMessage("这里是测试一哈子");
        return Boolean.TRUE;
    }
}
